<include file="public@header" />
<link rel="stylesheet" type="text/css" href="__STATIC__/layui/css/layui.css">
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('order/index')}">订单列表</a></li>
			<li class="active"><a>编辑订单</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20 layui-form" action="{:url('order/edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>产品信息
				</label>
				<div class="col-md-3 col-sm-6">
					<input type="text" class="form-control" name="title" value="{$row.title}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required">*</span>注意事项
				</label>
				<div class="col-md-6 col-sm-10">
					<script type="text/plain" id="content" name="content">{:cmf_replace_content_file_url(htmlspecialchars_decode($row['content']))}</script>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required"></span>相关项目
				</label>
				<div class="col-md-3 col-sm-6">
					<select class="form-control" name="project_id" lay-search="">
			          	<option value="">请选择项目</option>
			          	<foreach name="project_list" item="vo">
			          		<option value="{$vo.id}" <if $vo.id == $row.project_id>selected</if> >{$vo.title}|{$vo.project_no}</option>
			          	</foreach>
			        </select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">
					<span class="form-required"></span>厂家
				</label>
				<div class="col-md-3 col-sm-6">
					<select class="form-control" name="manufacturer_id" lay-search="">
			          	<option value="">请选择厂家</option>
			          	<foreach name="manufacturer_list" item="vo">
			          		<option value="{$vo.id}" <if $vo.id == $row.manufacturer_id>selected</if> >{$vo.name}</option>
			          	</foreach>
			        </select>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__STATIC__/layui/layui.js"></script>
<script type="text/javascript">
	layui.use(['form'], function(){
		var form = layui.form;
	});
    $(function () {

        editorcontent = new baidu.editor.ui.Editor();
        editorcontent.render('content');
        try {
            editorcontent.sync();
        } catch (err) {
        }

    });
</script>
</body>
</html>